using System.Collections.Generic;

namespace GameEngine.Linq
{
	public static class Enumerable
	{
		public static IEnumerable<TSource> Append<TSource>(params IEnumerable<TSource>[] sources)
		{
			foreach (var source in sources)
			{
				if (source != null)
				{
					foreach (var item in source)
					{
						yield return item;
					}
				}
			}
		}
	}
}
